CC=gcc
CFLAGS=-pthread -I.
DEPS = thread.h
OBJ = main.o thread.o

%.o: %.c $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)

OS_Threads: $(OBJ)
	gcc -o $@ $^ $(CFLAGS)
	
.PHONY: clean

clean:
	rm -f $(ODIR)*.o *~ core $(INCDIR)/*~ 